// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios' // 引入axios
import confusion from '../static/js/confusion'
import '@/common/stylus/index.styl'
import YDUI from 'vue-ydui'
import 'vue-ydui/dist/ydui.px.css'
import { Upload, Dialog } from 'element-ui'
Vue.use(Upload)
Vue.use(Dialog)
Vue.use(YDUI)
Vue.prototype.confusion = confusion
Vue.prototype.$axios = axios
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  data: {
    eventHub: new Vue()
  }
})
